package com.ttsx.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ttsx.core.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车表
 * @author lucky
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Cart extends BaseEntity {

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 产品ID
     */
    private Long productId;

    /**
     * 数量
     */
    private Integer quantity;


    @TableField(exist = false)
    private Product product;

}